

<table class="layui-table" lay-filter="edit-table" lay-data="{method: 'post',loading:'true', url:'{:url('Carmanage/returnCarList')}', page:true, id:'idDemo'}" lay-filter="test">
    <thead>
    <tr>
        <th lay-data="{field:'apply_time'}">申请还车时间</th>
        <th lay-data="{field:'car_plate'}">车牌号</th>
        <th lay-data="{field:'cartype_what'}">车型</th>
        <th lay-data="{field:'company_name'}">租赁单位</th>
        <th lay-data="{field:'member_name'}">租赁人</th>
        <th lay-data="{field:'member_tel'}">电话</th>
        <th lay-data="{field:'store_name'}">车辆所属分公司</th>
        <th lay-data="{field:'j_store_name'}">接收车辆分公司</th>
        <th lay-data="{toolbar:'#info',width:180,}">操作</th>

    </tr>
    </thead>
</table>
<script type="text/html" id="info">
    {{#  if(d.status == 1){ }}
    <a class="layui-btn  layui-btn-xs  edit-table ajax-delete delete" data-title="通过" data-msg="确认车辆已归还？" href="{:url('Carmanage/returnCar')}?id={{d.apply_car_id}}">通过</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs  edit-table ajax-delete delete" data-title="拒绝" data-msg="确认拒绝？" href="{:url('Carmanage/refuseCar')}?id={{d.apply_car_id}}">拒绝</a>
    {{#  } else if(d.status == 2) { }}
    已归还
    {{#  } }}
</script>






